Sugar for OCL
نویسندگان
چکیده
Examples of OCL use often do not exceed a few lines. Larger examples are rare, because the concrete syntax of OCL is verbose and based exclusively on ASCII encoding. This makes it easy to edit OCL in any environment, but hard to layout in a readable manner. A minor issue like presentation affects use in a major way. This paper proposes three shorthand notations, or syntactic sugars, for laying out OCL in the Latex, HTML, and Unicode encoding systems. To avoid splitting the available OCL source code base any further, flavours are convertible via the base syntax. To allow benefit across the community, the representations are OCL versionindependent. To support recognisability, the representations are visually very similar to each other. To simplify reuse, definitions are based on POSIX regular expressions and Unicode.
منابع مشابه
Enhancing the Object Constraint Language for More Expressive Specifications
The Object Constraint Language (OCL) is a precise language which could be used for describing constraints on object-oriented models and other modelling artifacts. The kind of constraints which can be described using OCL include invariants on classes, types and interfaces, preconditions and postconditions of operations and methods. This paper describes some enhancements to OCL that make specific...
متن کاملPanel Discussion: Proposals for Improving OCL
During the panel session at the OCL workshop, the OCL community discussed, stimulated by short presentations by OCL experts, potential future extensions and improvements of the OCL. As such, this panel discussion continued the discussion that started at the OCL meeting in Aachen in 2013 and on which we reported in the proceedings of the last year’s OCL workshop. This collaborative paper, to whi...
متن کاملImproving the Usability of OCL as an Ad-hoc Model Querying Language
The OCL is often perceived as difficult to learn and use. In previous research, we have defined experimental query languages exhibiting higher levels of usability than OCL. However, none of these alternatives can rival OCL in terms of adoption and support. In an attempt to leverage the lessons learned from our research and make it accessible to the OCL community, we propose the OCL Query API (O...
متن کاملTool-Supported Step-By-Step Debugging for the Object Constraint Language
Although originally designed as an extension for the Uni ed Modeling Language (UML), the Object Constraint Language (OCL) has been broadly adopted in the context of UML as well as other modeling and domain-speci c languages. However, appropriate tooling, supporting software developers on using OCL is still scarce and lacks debugging support. As OCL constraints are likely to become rather comple...
متن کاملBuilding an Efficient Component for OCL Evaluation
In this paper we report on our experience developing the Eye OCL Software (EOS) evaluator, a Java component for efficient OCL evaluation. We first motivate the need for an efficient implementation of OCL in order to cope with novel usages of the language. We then discuss some aspects that, based on our experience, should be taken into account when building an OCL evaluator for medium-large scen...
متن کامل